package org.dtrd.modules.content.articles.entity.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DtrdExtEmsYwArticlePushExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DtrdExtEmsYwArticlePushExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(Integer value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(Integer value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(Integer value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(Integer value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<Integer> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<Integer> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(Integer value1, Integer value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andPushTitleIsNull() {
            addCriterion("push_title is null");
            return (Criteria) this;
        }

        public Criteria andPushTitleIsNotNull() {
            addCriterion("push_title is not null");
            return (Criteria) this;
        }

        public Criteria andPushTitleEqualTo(String value) {
            addCriterion("push_title =", value, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleNotEqualTo(String value) {
            addCriterion("push_title <>", value, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleGreaterThan(String value) {
            addCriterion("push_title >", value, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleGreaterThanOrEqualTo(String value) {
            addCriterion("push_title >=", value, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleLessThan(String value) {
            addCriterion("push_title <", value, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleLessThanOrEqualTo(String value) {
            addCriterion("push_title <=", value, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleLike(String value) {
            addCriterion("push_title like", value, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleNotLike(String value) {
            addCriterion("push_title not like", value, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleIn(List<String> values) {
            addCriterion("push_title in", values, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleNotIn(List<String> values) {
            addCriterion("push_title not in", values, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleBetween(String value1, String value2) {
            addCriterion("push_title between", value1, value2, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushTitleNotBetween(String value1, String value2) {
            addCriterion("push_title not between", value1, value2, "pushTitle");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidIsNull() {
            addCriterion("push_categoryId is null");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidIsNotNull() {
            addCriterion("push_categoryId is not null");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidEqualTo(Integer value) {
            addCriterion("push_categoryId =", value, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidNotEqualTo(Integer value) {
            addCriterion("push_categoryId <>", value, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidGreaterThan(Integer value) {
            addCriterion("push_categoryId >", value, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidGreaterThanOrEqualTo(Integer value) {
            addCriterion("push_categoryId >=", value, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidLessThan(Integer value) {
            addCriterion("push_categoryId <", value, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidLessThanOrEqualTo(Integer value) {
            addCriterion("push_categoryId <=", value, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidIn(List<Integer> values) {
            addCriterion("push_categoryId in", values, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidNotIn(List<Integer> values) {
            addCriterion("push_categoryId not in", values, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidBetween(Integer value1, Integer value2) {
            addCriterion("push_categoryId between", value1, value2, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCategoryidNotBetween(Integer value1, Integer value2) {
            addCriterion("push_categoryId not between", value1, value2, "pushCategoryid");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeIsNull() {
            addCriterion("push_create_time is null");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeIsNotNull() {
            addCriterion("push_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeEqualTo(Date value) {
            addCriterion("push_create_time =", value, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeNotEqualTo(Date value) {
            addCriterion("push_create_time <>", value, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeGreaterThan(Date value) {
            addCriterion("push_create_time >", value, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("push_create_time >=", value, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeLessThan(Date value) {
            addCriterion("push_create_time <", value, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("push_create_time <=", value, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeIn(List<Date> values) {
            addCriterion("push_create_time in", values, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeNotIn(List<Date> values) {
            addCriterion("push_create_time not in", values, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeBetween(Date value1, Date value2) {
            addCriterion("push_create_time between", value1, value2, "pushCreateTime");
            return (Criteria) this;
        }

        public Criteria andPushCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("push_create_time not between", value1, value2, "pushCreateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}